<?php
namespace Api\controller;

use Think\Controller;

header("Content-Type:text/html;charset=utf-8");

class PushController extends Controller 
{

	public function pushDataAction() 
	{
		require_once 'Public.Aurora.autoload.php';
		import("Api.Controller.Jpush_send"); //引入Jpush_send类文件
		$fetion = new \Jpush_send();
		$receive = 'all';//全部
		//$receive = array('alias'=>array('2'),'alias'=>array('1'));//别名
		$content = '我要推送';
		$m_type = 'tb';
		$m_txt = '891';
		$m_time = '600'; //离线保留时间
		$res=$fetion->send_pub($receive, $content ,$m_type, $m_txt ,$m_time);
	}

}